package com.ldgame.utils;

import com.ldgame.sound.Sound;
import com.ldgame.sound.SoundSystem;

public class ToggleAudioAction implements BtnAction {
	private boolean audio = true;
	
	@Override
	public void executeAction() {
		audio = !audio;
		if (audio) {
			SoundSystem.playSound(Sound.THEME);
		} else {
			SoundSystem.pauseSound();
		}
	}
}
